# -*- coding: utf-8 -*-
"""
Created on Tue Jun  5 21:16:41 2018

@author: sun haiyang
"""
#%%

# the code below is the result filepath of kinds of modality
zpet_dirpath = r'/media/root/Elements4/XuanWu_last_stat/PET_processing/PET_SN_SR_del-subj24_z'
zcbf_dirpath = r'/media/root/Elements4/XuanWu_last_stat/CBF_processing/CBF_clear_background_SN_SR_del-subj24_z'
zrawmbold_dirpath = r'/media/root/Elements4/XuanWu_last_stat/BOLD_processing/FunImgARWS_Tstat-mean_z_del-suj24'

#the code below is the groupmask filepath of kinds of modality
gray_region_mask_filepath = r'/media/root/Elements4/XuanWu_last/mask/GM_mask/T1_SC_SS_GM_SN_SR_del-subj24_mean_threshold-0.5/T1_SC_SS_GM_SN_SR_del-subj24_mean_threshold-0.5.nii'


output_dirpath = r'/media/root/Elements4/XuanWu_last_stat/across_subject'

#the code below is the used as the excel title.
column_name_list = [] #must set value ,even set column_name_list =[]

grouppath_dict = {
                  'PETvsrawmBOLD':[zpet_dirpath,zrawmbold_dirpath,gray_region_mask_filepath,output_dirpath],\
                 'CBFvsrawmBOLD':[zcbf_dirpath,zrawmbold_dirpath,gray_region_mask_filepath,output_dirpath],\
                 }
print('grouppath_dict:',grouppath_dict)


#%%
from agilepipe.statics.acrosssubjectcorrelate import Multi_across_subject_correlate

Multi_across_subject_correlate([grouppath_dict,column_name_list])

#%%